<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<Universum.Model.Domain.Classes.LabWorkArticle>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Create new lab work
</asp:Content>
<asp:Content ContentPlaceHolderID="Breadcrumbs" ID="BreadcrumbsContent" runat="server">
	<%=Html.Breadcrumb().Home().Append<ClassesController>(c=>c.Index(),"Your classes").Class(ViewData["classId"].Cast<Guid>()).AppendText("Create lab work").End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create lab work</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

      <% using (Html.BeginForm<ClassesController>(controller=>controller.CreatePageWork(null))){%>

        <fieldset>
            <legend>Fields</legend>
            
            <p>
            <%= this.Select( model => model.PageGroupId).Options((IEnumerable<SelectListItem>)ViewData["pageGroups"]).Label("Section") %>
               
                <%= this.ValidationMessage( model => model.PageGroupId, "*") %>
            </p>
                 
            <p>
            <%= this.TextBox( model => model.Title).Label("Title") %>
               
                <%= this.ValidationMessage( model => model.Title, "*") %>
            </p>
            <p>
            <%= this.TextArea( model => model.Text).Label("Text") %>
               
                <%= this.ValidationMessage( model => model.Text, "*") %>
            </p>
            <p>
            <%= this.TextBox( model => model.Publish).Class("date").Label("Publish") %>
               
                <%= this.ValidationMessage( model => model.Publish, "*") %>
            </p>
           
            <p>
            <%= this.TextBox( model => model.SubmissionEnd).Class("date").Label("SubmissionEnd") %>
               
                <%= this.ValidationMessage( model => model.SubmissionEnd, "*") %>
            </p>
            
            <p>
               <%=this.SubmitButton("Save new article")%>
            </p>
        </fieldset>

    <% } %>
   

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
<%Html.RenderPartial("EditorAndDateUserControl"); %>
</asp:Content>

